import pytest
from config.config import settings
from utils.report_generator import generate_html_report


@pytest.fixture(scope="session")
def env_config():
    return settings


def pytest_terminal_summary(terminalreporter, exitstatus, config):
    """测试完成后生成报告"""
    generate_html_report()
